const express = require('express');
var merchantController = require('../controller/merchant.controller');

module.exports = (app) => {
    var router = express.Router();
    router.route('/')
        .post(merchantController.regist);

    router.route('/logout')
        .get(merchantController.logout);

    router.route('/:account/:pwd')
        .get(merchantController.login);

    app.use('/merchant', router);
    return router;
}

